package com.member.web.controller.shop;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.member.common.annotation.Log;
import com.member.common.core.controller.BaseController;
import com.member.common.core.domain.AjaxResult;
import com.member.common.core.page.TableDataInfo;
import com.member.common.enums.BusinessType;
import com.member.common.utils.poi.ExcelUtil;
import com.member.shop.domain.SysBizActivity;
import com.member.shop.dto.OverviewDto;
import com.member.shop.service.ISysBizActivityService;
import com.member.shop.service.ISysBizUserService;
import com.member.shop.vo.OverviewVo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 首页统计
 *
 * @author lixinchen
 * @date 2024-01-17
 */
@RestController
@RequestMapping("/shop/overview")
public class OverviewController extends BaseController {

    @Resource
    private ISysBizUserService sysBizUserService;
    /**
     * 首页统计
     */
    @PreAuthorize("@ss.hasPermi('shop:overview:list')")
    @GetMapping("/info")
    public AjaxResult getInfo(OverviewDto overviewDto) {
        OverviewVo info = sysBizUserService.overview(overviewDto);
        return success(info);
    }
}
